<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子</title>
</head>

<body>
    <div class="text">一切皆盒子
        <p>这里是段落1</p>
        <p>这里是段落2</p>
        网页就是由盒子摆出来的。
    </div>
    <div class="xi">盒子模型<img src="./images/盒子.png" alt=""></div>
    <style>
        .text {
            border: 4px red solid;
            padding: 10px;
            width: 300px;
            margin: auto;
        }

        p {
            border: 4px green solid;
            background-color: blue;
            padding: 10px;
            margin: 20px;
        }

        img {
            border: 2px red solid;
            padding: 20px;
            margin: 50px;
            width: 500px;
            background-color: #66CCFF;
            margin-top:30px;
            margin-bottom: 50px;
            margin-left: 70px;
            margin-right: 90px;
        }

        .xi {
            border-top: 4px red solid;
            border-right:7px yellow solid ;
            border-bottom:10px blue dashed;
            border-left:12px green dashed;
            padding: 10px;
            margin: auto;
            width: 650px;
            background-color: #39C5BB;
            text-align: center;
            color: black;
            font-size: 20px;
        }
    </style>

</body>

</html>